package com.cykj.shop.controller;

import com.cykj.common.core.web.domain.AjaxResult;
import com.cykj.shop.service.ShopCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 叶佳伟
 * @date 2025/8/26
 * @description 功能描述: 店铺类别控制器
 */

@RestController
@RequestMapping("shopCategory")
public class ShopCategoryController {
    @Autowired
    private ShopCategoryService shopCategoryService;

    //获取全类别
    @GetMapping("getAllCategory")
    public AjaxResult getAllCategory(){
        return shopCategoryService.getAllCategory();
    }
}
